#ifndef VERTEXARRAY_H
#define VERTEXARRAY_H

#include "vecmath.h"
#include <QtOpenGL>

class VertexArray
{
public:
    VertexArray();
    VertexArray(unsigned verticesSize, unsigned indicesSize = 0);
    VertexArray(const VertexArray& orig);

    ~VertexArray();
    
    VertexArray& operator=(const VertexArray& orig);
    
    void setSize(unsigned verticesSize, unsigned indicesSize = 0);
    
    PackedVecColor* getVertices() { return vertices; }
    unsigned getVerticesSize() { return verticesSize; }
    
    GLuint* getIndices() { return indices; }
    unsigned getIndicesSize() { return indicesSize; }
    
private:
    PackedVecColor* vertices;
    unsigned verticesSize;
    GLuint* indices;
    unsigned indicesSize;
};

#endif // VERTEXARRAY_H
